{% extends 'buyer/base.html' %}

{% block content %}

	<div class="total_count">全部商品<em>2</em>件</div>
	<ul class="cart_list_th clearfix">
		<li class="col01">商品名称</li>
		<li class="col02">商品单位</li>
		<li class="col03">商品价格</li>
		<li class="col04">数量</li>
		<li class="col05">小计</li>
		<li class="col06">操作</li>
	</ul>
        <form method="post" action="/Buyer/place_order/">
        {% csrf_token %}
        {% for shop in shops %}
        <ul class="cart_list_td clearfix">
            <li class="col01"><input type="checkbox" name="{{ shop.id }}"></li>
            <li class="col02"><img src="/static/{{ shop.commodity_picture }}"></li>
            <li class="col03">{{ shop.commodity_name }}<br><em>{{ shop.commodity_price }}/500g</em></li>
            <li class="col04">500g</li>
            <li class="col05">{{ shop.commodity_price }}元</li>
            <li class="col06">
                <div class="num_add">
                    <a href="javascript:;" class="add fl">+</a>
                    <input type="text" class="num_show fl" value="{{ shop.commodity_number }}">
                    <a href="javascript:;" class="minus fl">-</a>
                </div>
            </li>
            <li class="col07">{{ shop.total }}元</li>
            <li class="col08"><a href="javascript:;">删除</a></li>
        </ul>
        {% endfor %}



	<ul class="settlements">
		<li class="col01"><input type="checkbox" name="" checked=""></li>
		<li class="col02">全选</li>
		<li class="col03">合计(不含运费)：<span>¥</span><em>42.60</em><br>共计<b>2</b>件商品</li>
		<li class="col04"><button type="submit">去结算</button></li>
	</ul>

    </form>
{% endblock %}